package model

import "time"

type Company struct {
	ID           uint   `gorm:"primaryKey"`
	Name         string `gorm:"type:varchar(255);not null"`
	BusinessType string `gorm:"type:varchar(255);not null"`
	Asset        int32  `gorm:"type:int4;not null"`
	Addr         string `gorm:"type:varchar(255);not null"`
	Created      time.Time
}



type Employee struct {
	ID        uint      `gorm:"primaryKey"`
	UserName  string    `gorm:"type:varchar(255);column:username;not null"`
	Age       int32     `gorm:"type:int4;column:age;not null"`
	Gender    string    `gorm:"type:varchar(255);column:gender;not null"`
	Province  string    `gorm:"type:varchar(255);column:province;not null"`
	Email     string    `gorm:"type:varchar(255);column:email;not null"`
	Phone     string    `gorm:"type:varchar(255);column:phone;not null"`
	Education string    `gorm:"type:varchar(255);column:education;not null"`
	CompanyId int32     `gorm:"type:int4;column:company_id;not null"`
	Ip        string    `gorm:"type:varchar(255);column:ip;not null"`
	Created   time.Time `gorm:"column:created;not null"`
}
